package com.zhiyi.app.controller;

import com.zhiyi.app.entity.AppInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.*;


@Api(value = "SwaggerController",description = "swagger示例")
@RestController
@RequestMapping("/swagger")
public class SwaggerController {
    @ApiOperation("获取app信息的方法")
    @GetMapping("/get")
    public AppInfo getApp(){
        return new AppInfo();
    }
    @ApiOperation("添加app信息的方法")
    @PostMapping("/add")
    public Boolean add(@RequestBody(required = false) @ApiParam("app信息") AppInfo appInfo){
        return false;
    }
}
